/*
 * currentDataFrame.java
 *
 * Created on 18. November 2008, 15:34
 */

package GUI;

import javax.swing.table.DefaultTableModel;

/**
 *
 * @author  Michael
 */
public class currentDataFrame extends javax.swing.JPanel {

    /** Creates new form currentDataFrame */
    public currentDataFrame() {
        initComponents();
        updateCar();
        
    }
    
    public void updateCar(){
              
        String[][] selectedCarsTableData = new String [GraphicalUserInterface.selectedCar.size()][6];
        
        for(int i=0; i<GraphicalUserInterface.selectedCar.size(); i++){
            selectedCarsTableData[i][0] = Integer.toString(GraphicalUserInterface.selectedCar.get(i).getID());
            selectedCarsTableData[i][1] = GraphicalUserInterface.selectedCar.get(i).getHersteller();
            selectedCarsTableData[i][2] = GraphicalUserInterface.selectedCar.get(i).getModell();
            selectedCarsTableData[i][3] = GraphicalUserInterface.selectedCar.get(i).getKennzeichen();
            selectedCarsTableData[i][4] = GraphicalUserInterface.selectedCar.get(i).getFahrzeugklasse();
            selectedCarsTableData[i][5] = Integer.toString(GraphicalUserInterface.selectedCar.get(i).getSitzplatze());
        }        
        
        DefaultTableModel tableModel = new DefaultTableModel(selectedCarsTableData, selectedCarsTableColums);
        
        autoTable.setModel(tableModel);
        
        if((GraphicalUserInterface.selectedCar.size()>0)&(GraphicalUserInterface.selectedCustomer.getName()!=null)){
            this.rentalButton.setEnabled(true);
        }  
        else {
            this.rentalButton.setEnabled(false);
        }        
        
    }
    
    public void updateCustomer(){
        customerIdInfo.setText(Integer.toString(GraphicalUserInterface.selectedCustomer.getID()));
        customerAnredeInfo.setText(GraphicalUserInterface.selectedCustomer.getAnrede());
        customerFirstnameInfo.setText(GraphicalUserInterface.selectedCustomer.getVorname());
        customerNameInfo.setText(GraphicalUserInterface.selectedCustomer.getName());
        customerCompanyInfo.setText(GraphicalUserInterface.selectedCustomer.getFirmennamen());
        customerAddressInfo.setText(GraphicalUserInterface.selectedCustomer.getAdresse());
        customerDateInfo.setText(GraphicalUserInterface.selectedCustomer.getFuehrerscheindatum());
        customerClassInfo.setText(GraphicalUserInterface.selectedCustomer.getFuehrerscheinklassen());
        customerDiscountInfo.setText(Float.toString(GraphicalUserInterface.selectedCustomer.getRebatt()));
        customerTelInfo.setText(GraphicalUserInterface.selectedCustomer.getTelefonnummer());
        customerBirthInfo.setText(GraphicalUserInterface.selectedCustomer.getGeburtsdatum());
        if((GraphicalUserInterface.selectedCar.size()>0)&(GraphicalUserInterface.selectedCustomer.getName()!=null)){
            this.rentalButton.setEnabled(true);
        }  
        else {
            this.rentalButton.setEnabled(false);
        }
                
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        customerPanel = new javax.swing.JPanel();
        customerIdLabel = new javax.swing.JLabel();
        customerAnredeLabel = new javax.swing.JLabel();
        customerFirstnameLabel = new javax.swing.JLabel();
        customerNameLabel = new javax.swing.JLabel();
        customerAddressLabel = new javax.swing.JLabel();
        customerCompanyLabel = new javax.swing.JLabel();
        customerTelLabel = new javax.swing.JLabel();
        customerBirthLabel = new javax.swing.JLabel();
        customerBirthInfo = new javax.swing.JLabel();
        customerTelInfo = new javax.swing.JLabel();
        customerCompanyInfo = new javax.swing.JLabel();
        customerNameInfo = new javax.swing.JLabel();
        customerIdInfo = new javax.swing.JLabel();
        customerAnredeInfo = new javax.swing.JLabel();
        customerFirstnameInfo = new javax.swing.JLabel();
        customerAddressInfo = new javax.swing.JLabel();
        customerDiscountLabel = new javax.swing.JLabel();
        customerDateLabel = new javax.swing.JLabel();
        customerClassLabel = new javax.swing.JLabel();
        customerDiscountInfo = new javax.swing.JLabel();
        customerDateInfo = new javax.swing.JLabel();
        customerClassInfo = new javax.swing.JLabel();
        autoPanel = new javax.swing.JPanel();
        autoTableScroll = new javax.swing.JScrollPane();
        autoTable = new javax.swing.JTable();
        deleteCustomerButton = new javax.swing.JButton();
        deleteAutoButton = new javax.swing.JButton();
        rentalButton = new javax.swing.JButton();

        customerPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Aktueller Kunde"));

        customerIdLabel.setText("ID:"); // NOI18N

        customerAnredeLabel.setText("Anrede:"); // NOI18N

        customerFirstnameLabel.setText("Vorname:"); // NOI18N

        customerNameLabel.setText("Name:"); // NOI18N

        customerAddressLabel.setText("Adresse:"); // NOI18N

        customerCompanyLabel.setText("Firma:"); // NOI18N

        customerTelLabel.setText("Telefon:"); // NOI18N

        customerBirthLabel.setText("Geburtsdatum:"); // NOI18N

        customerDiscountLabel.setText("Rabattfaktor:"); // NOI18N

        customerDateLabel.setText("Führerscheindatum:"); // NOI18N

        customerClassLabel.setText("Führerscheinklassen:"); // NOI18N

        javax.swing.GroupLayout customerPanelLayout = new javax.swing.GroupLayout(customerPanel);
        customerPanel.setLayout(customerPanelLayout);
        customerPanelLayout.setHorizontalGroup(
            customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(customerPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(customerAddressLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(customerCompanyLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(customerIdLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(customerAnredeLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(customerNameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(customerFirstnameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 66, Short.MAX_VALUE))
                .addGap(41, 41, 41)
                .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(customerPanelLayout.createSequentialGroup()
                        .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(customerPanelLayout.createSequentialGroup()
                                .addComponent(customerNameInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE)
                                .addGap(15, 15, 15))
                            .addGroup(customerPanelLayout.createSequentialGroup()
                                .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(customerIdInfo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE)
                                    .addComponent(customerAnredeInfo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE)
                                    .addComponent(customerFirstnameInfo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, customerPanelLayout.createSequentialGroup()
                                .addComponent(customerCompanyInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(customerDateLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE)
                            .addComponent(customerClassLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(customerDiscountLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(customerTelLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(customerBirthLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, customerPanelLayout.createSequentialGroup()
                                .addComponent(customerDiscountInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)
                                .addGap(35, 35, 35))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, customerPanelLayout.createSequentialGroup()
                                .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(customerDateInfo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE)
                                    .addComponent(customerClassInfo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE))
                                .addGap(20, 20, 20))
                            .addComponent(customerBirthInfo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 133, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, customerPanelLayout.createSequentialGroup()
                                .addComponent(customerTelInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE)
                                .addGap(20, 20, 20))))
                    .addComponent(customerAddressInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 472, Short.MAX_VALUE))
                .addContainerGap())
        );

        customerPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {customerBirthLabel, customerClassLabel, customerDateLabel, customerDiscountLabel, customerTelLabel});

        customerPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {customerAddressLabel, customerAnredeLabel, customerCompanyLabel, customerFirstnameLabel, customerIdLabel, customerNameLabel});

        customerPanelLayout.setVerticalGroup(
            customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(customerPanelLayout.createSequentialGroup()
                .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(customerPanelLayout.createSequentialGroup()
                            .addComponent(customerDateInfo, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(customerClassInfo)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(customerDiscountInfo))
                        .addGroup(customerPanelLayout.createSequentialGroup()
                            .addComponent(customerDateLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(customerClassLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(customerDiscountLabel)))
                    .addGroup(customerPanelLayout.createSequentialGroup()
                        .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(customerPanelLayout.createSequentialGroup()
                                .addComponent(customerTelInfo)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(customerBirthInfo))
                            .addGroup(customerPanelLayout.createSequentialGroup()
                                .addComponent(customerTelLabel)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(customerBirthLabel))
                            .addGroup(customerPanelLayout.createSequentialGroup()
                                .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(customerIdInfo, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(customerIdLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(customerAnredeInfo)
                                    .addComponent(customerAnredeLabel))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(customerNameInfo)
                                    .addComponent(customerNameLabel))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(customerFirstnameInfo)
                                    .addComponent(customerFirstnameLabel))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(customerCompanyInfo)
                                    .addComponent(customerCompanyLabel))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(customerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(customerAddressLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(customerAddressInfo, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(15, Short.MAX_VALUE))
        );

        autoPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Aktuelle Fahrzeuge"));

        autoTable.setModel(new javax.swing.table.DefaultTableModel(

            new Object [][] {

            },
            selectedCarsTableColums
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        updateCar();
        autoTableScroll.setViewportView(autoTable);
        autoTable.getColumnModel().getColumn(0).setPreferredWidth(15);
        autoTable.getColumnModel().getColumn(3).setPreferredWidth(40);
        autoTable.getColumnModel().getColumn(4).setPreferredWidth(30);
        autoTable.getColumnModel().getColumn(5).setPreferredWidth(30);

        javax.swing.GroupLayout autoPanelLayout = new javax.swing.GroupLayout(autoPanel);
        autoPanel.setLayout(autoPanelLayout);
        autoPanelLayout.setHorizontalGroup(
            autoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(autoPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(autoTableScroll, javax.swing.GroupLayout.DEFAULT_SIZE, 547, Short.MAX_VALUE)
                .addContainerGap())
        );
        autoPanelLayout.setVerticalGroup(
            autoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(autoPanelLayout.createSequentialGroup()
                .addComponent(autoTableScroll, javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)
                .addContainerGap())
        );

        deleteCustomerButton.setText("Kunde zurücksetzen"); // NOI18N
        deleteCustomerButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deleteCustomerButtonActionPerformed(evt);
            }
        });

        deleteAutoButton.setText("Fahrzeuge zurücksetzen"); // NOI18N
        deleteAutoButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deleteAutoButtonActionPerformed(evt);
            }
        });

        rentalButton.setText("Vermietung"); // NOI18N
        rentalButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rentalButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(customerPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addComponent(deleteCustomerButton, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(deleteAutoButton, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(rentalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(autoPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {deleteAutoButton, deleteCustomerButton, rentalButton});

        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(customerPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addComponent(autoPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(deleteCustomerButton)
                            .addComponent(deleteAutoButton)
                            .addComponent(rentalButton))))
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

private void deleteCustomerButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteCustomerButtonActionPerformed
// TODO add your handling code here:
    GraphicalUserInterface.selectedCustomer = new kernel.Customer();
    this.updateCustomer();
    GraphicalUserInterface.disableRentalTab();
}//GEN-LAST:event_deleteCustomerButtonActionPerformed

private void deleteAutoButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteAutoButtonActionPerformed
// TODO add your handling code here:
    GraphicalUserInterface.selectedCar.remove(autoTable.getSelectedRow());
    updateCar();
    if(GraphicalUserInterface.selectedCar.size()<=0) GraphicalUserInterface.disableRentalTab();
}//GEN-LAST:event_deleteAutoButtonActionPerformed

private void rentalButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rentalButtonActionPerformed
// TODO add your handling code here:
    GraphicalUserInterface.tabbedPane.setSelectedIndex(7);    
}//GEN-LAST:event_rentalButtonActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel autoPanel;
    private javax.swing.JTable autoTable;
    private javax.swing.JScrollPane autoTableScroll;
    private javax.swing.JLabel customerAddressInfo;
    private javax.swing.JLabel customerAddressLabel;
    private javax.swing.JLabel customerAnredeInfo;
    public javax.swing.JLabel customerAnredeLabel;
    private javax.swing.JLabel customerBirthInfo;
    private javax.swing.JLabel customerBirthLabel;
    private javax.swing.JLabel customerClassInfo;
    private javax.swing.JLabel customerClassLabel;
    private javax.swing.JLabel customerCompanyInfo;
    private javax.swing.JLabel customerCompanyLabel;
    private javax.swing.JLabel customerDateInfo;
    private javax.swing.JLabel customerDateLabel;
    private javax.swing.JLabel customerDiscountInfo;
    private javax.swing.JLabel customerDiscountLabel;
    private javax.swing.JLabel customerFirstnameInfo;
    private javax.swing.JLabel customerFirstnameLabel;
    private javax.swing.JLabel customerIdInfo;
    private javax.swing.JLabel customerIdLabel;
    private javax.swing.JLabel customerNameInfo;
    private javax.swing.JLabel customerNameLabel;
    private javax.swing.JPanel customerPanel;
    private javax.swing.JLabel customerTelInfo;
    private javax.swing.JLabel customerTelLabel;
    private javax.swing.JButton deleteAutoButton;
    private javax.swing.JButton deleteCustomerButton;
    private javax.swing.JButton rentalButton;
    // End of variables declaration//GEN-END:variables
    private String[] selectedCarsTableColums = {"ID", "Hersteller", "Modell", "Kennzeichen", "Klasse", "Sitzplätze"};
}
